package adapter;

import android.content.Context;
import android.support.annotation.Nullable;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import bean.AllNoticeBean;
import student.andlei.com.student.R;
import utils.GlideUtils;

public class AddImagePickerAdapter extends BaseQuickAdapter<String,BaseViewHolder> {
    private Context context;
    public AddImagePickerAdapter(Context context, int layoutResId, @Nullable List<String> data) {
        super(layoutResId, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, String item) {
        GlideUtils.loadImageView(context,item, (ImageView) helper.getView(R.id.img_item));
    }
}
